home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / C / ODDesLst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  5.2 KB  |  182 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: ODDesLst.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODDescList_h
  18. #define SOM_ODDescList_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default.
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODDescList
  34. #define ODDescList SOMObject
  35. #endif
  36. #include <ODDesc.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef SOMClass
  42.     #define SOMClass SOMObject
  43. #endif /* SOMClass */
  44. #ifndef SOMObject
  45.     #define SOMObject SOMObject
  46. #endif /* SOMObject */
  47. #ifndef ODFrame
  48.     #define ODFrame SOMObject
  49. #endif /* ODFrame */
  50. #ifndef ODFacet
  51.     #define ODFacet SOMObject
  52. #endif /* ODFacet */
  53. #ifndef ODObject
  54.     #define ODObject SOMObject
  55. #endif /* ODObject */
  56. #ifndef ODExtension
  57.     #define ODExtension SOMObject
  58. #endif /* ODExtension */
  59. #ifndef ODDesc
  60.     #define ODDesc SOMObject
  61. #endif /* ODDesc */
  62. #ifndef ODDescList
  63.     #define ODDescList SOMObject
  64. #endif /* ODDescList */
  65.  
  66. /*
  67.  * End of user-defined types.
  68.  */
  69.  
  70. #define ODDescList_MajorVersion 1
  71. #define ODDescList_MinorVersion 0
  72.  
  73. /*
  74.  * External name shortening if required
  75.  */
  76. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  77. #define ODDescListClassData d
  78. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  79. /*--------------Migration------------*/
  80.  
  81. #ifdef OLDIBMSOMAPISUPPORT
  82. #define ODDescList_classObj somNewClassReference(ODDescList)
  83. #define _ODDescList ODDescList_classObj
  84. #define ODDescListCClassData ODDescListClassData
  85. #define ODDescListNewClass(major,minor) somNewVersionedClassReference(ODDescList,major,minor)
  86. #endif
  87.  
  88. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  89. #define ODDescListMetaClass SOMClass
  90.  
  91. #if PRAGMA_ALIGN_SUPPORTED
  92. #  pragma options align=power
  93. #endif
  94.  
  95. /*
  96.  * Declare the class data structure
  97.  */
  98. SOMEXTERN struct ODDescListClassDataStructure {
  99. #ifdef OLDIBMSOMAPISUPPORT
  100.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  101. #else
  102.     long zero;
  103. #endif
  104.     somStaticClassInfo *sci;
  105.     somDToken        instanceDataToken;
  106.     long reserved [3];
  107.     somMToken InitODDescList;
  108. } SOMDLINK ODDescListClassData;
  109.  
  110. #if PRAGMA_ALIGN_SUPPORTED
  111. #  pragma options align=reset
  112. #endif
  113.  
  114. #if !defined(ODDescList_Class_Source) && !defined(SOM_Module_oddeslst_Source)
  115. #if PRAGMA_IMPORT_SUPPORTED
  116. #pragma import list ODDescListClassData
  117. #endif
  118. #endif
  119.  
  120.  
  121. /*
  122.  * New macro for ODDescList
  123.  */
  124. #define ODDescListNew() somNewObject(ODDescList)
  125.  
  126. /*
  127.  * New Method: InitODDescList
  128.  */
  129. typedef void   (SOMLINK *somTD_ODDescList_InitODDescList)(ODDescList *somSelf, Environment *ev);
  130. #define somMD_ODDescList_InitODDescList "::ODDescList::InitODDescList"
  131. #define ODDescList_InitODDescList(somSelf,ev) \
  132.     (SOM_Resolve(somSelf, ODDescList, InitODDescList) \
  133.     (somSelf,ev))
  134. #ifndef SOMGD_InitODDescList
  135.     #if (defined(_InitODDescList) || defined(__InitODDescList))
  136.         #undef _InitODDescList
  137.         #undef __InitODDescList
  138.         #define SOMGD_InitODDescList 1
  139.     #else
  140.         #define _InitODDescList ODDescList_InitODDescList
  141.     #endif /* _InitODDescList */
  142. #endif /* SOMGD_InitODDescList */
  143. #ifndef SOM_DONT_USE_INHERITED_MACROS
  144. #define ODDescList_InitODDesc ODDesc_InitODDesc
  145. #define ODDescList_SetDescType ODDesc_SetDescType
  146. #define ODDescList_SetRawData ODDesc_SetRawData
  147. #define ODDescList_GetDescType ODDesc_GetDescType
  148. #define ODDescList_GetRawData ODDesc_GetRawData
  149. #define ODDescList_somUninit SOMObject_somUninit
  150. #define ODDescList_InitObject ODObject_InitObject
  151. #define ODDescList_HasExtension ODObject_HasExtension
  152. #define ODDescList_AcquireExtension ODObject_AcquireExtension
  153. #define ODDescList_ReleaseExtension ODObject_ReleaseExtension
  154. #define ODDescList_Purge ODObject_Purge
  155. #define ODDescList_IsEqualTo ODObject_IsEqualTo
  156. #define ODDescList_SubClassResponsibility ODObject_SubClassResponsibility
  157. #define ODDescList_somInit SOMObject_somInit
  158. #define ODDescList_somUninit SOMObject_somUninit
  159. #define ODDescList_somInit SOMObject_somInit
  160. #define ODDescList_somUninit SOMObject_somUninit
  161. #define ODDescList_somDuplicateReference SOMObject_somDuplicateReference
  162. #define ODDescList_somCompareReference SOMObject_somCompareReference
  163. #define ODDescList_somRelease SOMObject_somRelease
  164. #define ODDescList_somFree SOMObject_somFree
  165. #define ODDescList_somCanDelete SOMObject_somCanDelete
  166. #define ODDescList_somGetClass SOMObject_somGetClass
  167. #define ODDescList_somGetClassName SOMObject_somGetClassName
  168. #define ODDescList_somGetSize SOMObject_somGetSize
  169. #define ODDescList_somIsA SOMObject_somIsA
  170. #define ODDescList_somRespondsTo SOMObject_somRespondsTo
  171. #define ODDescList_somIsInstanceOf SOMObject_somIsInstanceOf
  172. #define ODDescList_somDispatch SOMObject_somDispatch
  173. #define ODDescList_somClassDispatch SOMObject_somClassDispatch
  174. #define ODDescList_somCastObj SOMObject_somCastObj
  175. #define ODDescList_somResetObj SOMObject_somResetObj
  176. #define ODDescList_somPrintSelf SOMObject_somPrintSelf
  177. #define ODDescList_somDumpSelf SOMObject_somDumpSelf
  178. #define ODDescList_somDumpSelfInt SOMObject_somDumpSelfInt
  179. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  180.  
  181. #endif       /* SOM_ODDescList_h */
  182.